package com.kefu.admin.common.zk.zkleader;

/**
 * Created by TWD on 2018/9/29.
 */
public class ZkUtils{

        public static final String ZK_ROOT = "/waterjava";

        public ZkUtils() {
        }

        public static String createZkSchedulerLeaderPath(String applicationName, String profile) {
            return String.format("%s/%s/%s/schedulers", new Object[]{"/waterjava", applicationName, profile});
        }

        public static String createZkXxlJobLockPath(String applicationName, String profile, String jobName) {
            return String.format("%s/%s/%s/xxljob/%s", new Object[]{"/waterjava", applicationName, profile, jobName});
        }
}
